package com.itheima.day05;

/*
案例3:方法的重载:

    利用重载的思想,比较任意数据类型数据的大小:
 */

public class TestClassCase03 {

    public static void main(String[] args) {

        double a=1.2;
        double b=1.2;

        System.out.println(compare(a,b));
    }


    public static boolean compare(int a,int b){
        return a==b;
    }

    public static boolean compare(byte a,byte b){
        return a==b;
    }

    public static boolean compare(short a,short b){
        return a==b;
    }

    public static boolean compare(long a,long b){
        return a==b;
    }

    public static boolean compare(double a,double b){
        return a==b;
    }

}
